Skip to content

Allow Gradle verification of Test Optimization dependencies - #12077

Open
daniel-mohedano wants to merge 2 commits into
masterfrom
daniel.mohedano/test-optimization-dependency-verification
Open

Allow Gradle verification of Test Optimization dependencies#12077
daniel-mohedano wants to merge 2 commits into
masterfrom
daniel.mohedano/test-optimization-dependency-verification

Conversation

@daniel-mohedano

@daniel-mohedano daniel-mohedano commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Adds an opt-in configuration for applying Gradle dependency verification to dependencies injected by Test Optimization: DD_CIVISIBILITY_GRADLE_DEPENDENCY_VERIFICATION_ENABLED=true.

Dependency verification remains disabled by default for the injected compiler plugin and JaCoCo dependencies. This avoids requiring customers to update their verification metadata when enabling the Java agent.

When dependency verification is disabled and gradle/verification-metadata.xml exists, the tracer logs a warning explaining the behavior and how to opt in.

Motivation

Customers using Gradle dependency verification should not need to update their projects simply because Test Optimization injects dependencies.

Customers who want verification to cover these dependencies can explicitly enable it and add them to gradle/verification-metadata.xml.

Additional Notes

test-environment-trigger: skip

Contributor Checklist

Jira ticket: APMSP-3236

@daniel-mohedano daniel-mohedano added type: feature Enhancements and improvements comp: ci visibility Continuous Integration Visibility labels Jul 27, 2026
@daniel-mohedano daniel-mohedano changed the title Allow Gradle verification Allow Gradle verification of Test Optimization dependencies Jul 27, 2026
@daniel-mohedano

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2b016f9b29

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Jul 27, 2026

Copy link
Copy Markdown

🎯 Code Coverage (details)
Patch Coverage: 0.00%
Overall Coverage: 57.54% (-0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 2f7754b | Docs | Datadog PR Page | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.95 s 13.95 s [-0.7%; +0.6%] (no difference)
startup:insecure-bank:tracing:Agent 12.93 s 12.92 s [-0.6%; +0.8%] (no difference)
startup:petclinic:appsec:Agent 16.91 s 16.30 s [-0.6%; +8.1%] (no difference)
startup:petclinic:iast:Agent 16.47 s 16.86 s [-6.6%; +2.0%] (no difference)
startup:petclinic:profiling:Agent 16.65 s 16.84 s [-2.5%; +0.3%] (no difference)
startup:petclinic:sca:Agent 16.49 s 16.23 s [-4.7%; +8.0%] (unstable)
startup:petclinic:tracing:Agent 15.67 s 15.86 s [-5.2%; +2.8%] (no difference)

Commit: 2f7754b1 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Jul 27, 2026

Copy link
Copy Markdown

Bits couldn’t fix the CI

🟢 Investigated · 🔴 Fix failed · ⚪ Validate · ⚪ Ready

validate_supported_configurations_v2_local_file rejects DD_CIVISIBILITY_GRADLE_DEPENDENCY_VERIFICATION_ENABLED because its configuration implementation has not been registered in the Feature Parity Dashboard registry. The repository already contains the required configuration definition, default, accessor, and metadata entry; registering the implementation externally is required before this check can pass, so no code change was made.


View in Datadog | Reviewed commit 2f7754b · Any feedback? Reach out in #deveng-pr-agent

@daniel-mohedano
daniel-mohedano marked this pull request as ready for review July 28, 2026 08:27
@daniel-mohedano
daniel-mohedano requested review from a team as code owners July 28, 2026 08:27

@datadog-datadog-us1-prod datadog-datadog-us1-prod Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Datadog Autotest: PASS

More details

The dependency-verification gate and warning behavior matched the intended default/opt-in contract, and an isolated Gradle probe confirmed the JaCoCo plugin creates only jacocoAgent and jacocoAnt configurations. The repository smoke test could not run because this environment lacks JDK 25 and cannot download the Gradle wrapper distribution.

Was this helpful? React 👍 or 👎

📊 Validated against 1 scenarios · Open Bits AI session

🤖 Datadog Autotest · Commit 2f7754b · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

@PerfectSlayer PerfectSlayer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: ci visibility Continuous Integration Visibility type: feature Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants